<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
<script type="text/javascript">
  
 $(function(){
	 $("#menutop").click(function(){
		 if(document.getElementById("menu0").style.display=="none"){
			 document.getElementById("menu0").style.display="block";
		 }else {
			 document.getElementById("menu0").style.display="none";
		 }
	 });
	 $("#menutop2").click(function(){
		 if(document.getElementById("menu1").style.display=="none"){
			 document.getElementById("menu1").style.display="block";
		 }else {
			 document.getElementById("menu1").style.display="none";
		 }
	 });
	
 });
 $(function(){
	 $(".menu_head").click(function(){
         $(this).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow"); 
         document.cookie = "inn="+  $(this).next("div.menu_body").attr("id")+"";
     });
	 $(document).ready(function(){
			var Coos = document.cookie.split(";");
			//var link = document.getElementsByTagName("div");
			for(var j = 0; j < Coos.length; j++){
				var Coos_j = Coos[j].split("=");
				if("inn" == $.trim(Coos_j[0])){
					$("#"+Coos_j[1]).show();
				}
			}
			$.ajax({
				url:"${pageContext.request.contextPath}/login_userLoginFunction.action",
				type:"post",
				success:function(data){
					$.each(data.Functions,function(i,val){
						if(val.fModule == "我的资源"){
							var myziyuan = "<a href="+val.fLink+">"+val.fLinkname+"</a><br/>";
							$("#myziyuan").append(myziyuan);
						}else if(val.fModule == "设置"){
							var shezhi = "<a href="+val.fLink+">"+val.fLinkname+"</a><br/>";
							$("#shezhi").append(shezhi);
						}
					});
				}
			});
		 });
 });
 
 </script>

<div style="float:left;">
   <h3 id="menutop">我的资源</h3>
   <div id="menu0" style="display:none;">
   <a href="page_myphoto_myphoto.action">我的图片</a><br/>
   <a>我的视频</a>
   </div>
   
   <h3 id="menutop2">设置</h3>
   <div id="menu1" style="display:none;">
   <a>图片设置</a><br/>
   <a>视频设置</a>
</div>
<div id="firstpane" class="menu_list">  
  <p class="menu_head">我的资源</p>  
    <div class="menu_body" id="me0" style="display:none;">  
       <span id="myziyuan"></span>
    </div>  
 <p class="menu_head">设置</p>  
    <div class="menu_body" id="me1"  style="display:none;">  
   <span id="shezhi"></span>
    </div>  

</div>
 <s:debug></s:debug>
</body>
</html>